<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
        <title>jumpTo - Standard Library - Prails API Documentation</title>
    </head>
    <body>
        <h3 class="P4"><a name="_hyperlink"><span/></a>jumpTo</h3><h4 class="Heading_20_4"><a name="_Description_"><span/></a>Description:</h4>
        <p class="Text_20_body">
            Redirect the user to another page.
        </p>
        <h4 class="Heading_20_4"><a name="_Syntax_"><span/></a>Syntax:</h4>
        <p class="Text_20_body">
            <code>void jumpTo($str_url)</code>
        </p>
        <table border="0" cellspacing="0" cellpadding="0" class="Table23">
            <colgroup>
                <col width="117"/><col width="626"/>
            </colgroup>
            <tr>
                <td style="text-align:left;width:2.683cm; " class="Table23_A1">
                    <p class="Table_20_Contents">
                        $str_url
                    </p>
                </td>
                <td style="text-align:left;width:14.316cm; " class="Table23_B1">
                    <p class="Table_20_Contents">
                        the URL to redirect the user to (can be relative or absolute)
                    </p>
                </td>
            </tr>
        </table>
        <p class="Text_20_body">
            <span class="T1">Returns:</span>
            nothing
        </p>
        <h4 class="Heading_20_4"><a name="_Example_"><span/></a>Example:</h4>
        <pre>
        	if ($_GET["test"] == "1") {
	        	jumpTo("http://www.google.com");
        	} else {
        		jumpTo("user/home");
        	}
        	die();
        </pre>
        <p class="Text_20_body">
            This example will redirect the user to Google if a GET parameter "test" is set to one, else will redirect the user to the user:home event.
        </p>
    </body>
</html>
